<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/global/jsp-header.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<title>${type eq 0 ? '删除':'添加'}角色人员</title>
<%@ include file="/global/html-header.jsp"%>
<style type="text/css">
	.content{height:200px;}
</style>
<script type="text/javascript">
	$(function(){
		common.initDialog("message-dialog");
		$("#returnBtn").on("click",function(){
			window.parent.f_overrideTab("角色人员管理","/role/worker-role-input.do?role.roleId=${role.roleId }");
		});
	});
	function editDeptTip(msg){
		$("#msgcontent").html(msg);
		common.tipWithAutoClose("message-dialog");
	}
</script>
</head>
<body>
	<div class="container">
			<div class="content">
				<form action="/role/worker-role-query.do"  name="myform" class="myform"
					id="myform" target="queryResultIframe" method="post">
					<div>
						<input type="hidden" name="param.type" value="${type }"/>
						<input type="hidden" name="param.roleId" value="${role.roleId }"/>
					</div>
					<div>
					<div>
						<jsp:include page="/global/organ.jsp">
								<jsp:param name="workerId" value="${currentWorker.workerId}"/>
								<jsp:param name="uri" value="/worker/worker-query.do"/>
								<jsp:param name="deptName" value="param.deptId"/>
								<jsp:param name="groupName" value="param.groupId"/>
								<jsp:param name="noWorker" value="1"/>
								<jsp:param name="defaultValue" value=" "/>
								<jsp:param name="otherAttr" value="style='width: 153px;' "/>
						</jsp:include>
					</div>
					<div style="clear: both">
						<label>等级：</label>
						<label><input type="checkbox" name="param.rank" value="4" checked="checked"/>总监</label>
	                    <label><input type="checkbox" name="param.rank" value="3" checked="checked"/>经理</label>
	                    <label><input type="checkbox" name="param.rank" value="2" checked="checked"/>组长</label>
	                    <label><input type="checkbox" name="param.rank" value="1" checked="checked"/>组员</label>
					</div>
					<div style="clear: both">
						<label>
							&nbsp;
						</label>
	                    <input type="submit" value="提交"/>
	                    <input type="button" id="returnBtn" value="返回"/>
	                    <em class="ideal-button" style="visibility:hidden;"></em>			
	                </div>
	               </div>
				</form>
				</div>
				<div class="content hide" id="queryResult">
						<iframe class="queryResultIframe" name="queryResultIframe"
							id="queryResultIframe" src="about:blank" style="width: 97%;"
							frameborder="0" scrolling="no"></iframe>
				</div>
		</div>
		<div id="message-dialog" title="消息">
			<p id="msgcontent"></p>
		</div>
</body>
</html>